<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>竞思<#if topic??>${topic}</#if>在线评估表 （<#if topic??>${topic}</#if>测评）</title>
<script src="${staticServer}/js/t/jquery.js"></script>
<script src="${staticServer}/js/t/json.js"></script>
<script src="${staticServer}/js/t/infopad.js"></script>
<script src="${staticServer}/js/t/jalert.js"></script>
<script src="${staticServer}/js/t/overlay.js"></script>
<script src="${staticServer}/js/t/submitter.js"></script>
<script src="${staticServer}/js/t/ask-2.js?1.5"></script>
<script type="text/javascript" src="${staticServer}/js/t/scrollable.js"></script>
<script src= "${staticServer}/js/t/nav-small.js"></script>
<script language="javascript" type="text/javascript" src="http://pv.sohu.com/cityjson?ie=utf-8"></script>


<script>
var contextPath='${contextPath}';
 </script>
	<style type="text/css">
		* { margin: 0; padding: 0; list-style-type: none; }

		a, img { border: 0; }

		body { font: 12px/180% Arial, Helvetica, sans-serif, "新宋体"; }

		#wizard { border: 2px solid #ef8641; font-size: 12px; height: 458px; margin: 0px auto; width: 783px; overflow: hidden; position: relative; -moz-border-radius: 5px; -webkit-border-radius: 5px; }

		#wizard .items { width: 20000px; clear: both; position: absolute; }

		#wizard .right { float: right; vertical-align: middle; }

		#wizard .left { float: left; }

		#wizard #status { height: 35px; background: #ef8641; padding-left: 25px !important; }

		#status li { float: left; color: #fff; padding: 7px 23px; }

		#status li.active { background-color: #F5B06E; font-weight: normal; }

		.input { width: 240px; height: 18px; margin: 10px auto; line-height: 20px; border: 1px solid #d3d3d3; padding: 2px }

		.page { padding: 10px 10px 10px 10px; width: 763px; float: left; }

		#wizard h3 { margin: 10px 0 10px 30px; letter-spacing: 0.1em; }

		#wizard h3 em { font-size: 15px; font-weight: 500; font-style: normal }

		.page p { line-height: 24px; }

		.page p label { font-size: 14px; display: block; }

		.btn_nav { height: 32px; line-height: 32px; margin: 20px auto; }

		.prev, .next { width: 100px; height: 32px; line-height: 32px; border: 1px solid #d3d3d3; cursor: pointer; margin-left: 185px; }

		.page ul li { color: #666; list-style: none; height: 33px; line-height: 33px; padding-left: 15px; border-bottom: 1px dotted #efefef; font-size: 15px; }

		.page ul li .checkbox { color: #333; font-size: 14px; height: 25px; cursor: pointer; padding: 2px 10px 2px 10px; margin-right: 4px; border: 1px solid #eee; background: #fff; -moz-border-radius: 12px; -khtml-border-radius: 12px; -webkit-border-radius: 12px; border-radius: 12px; }

		.page ul li .checkbox:hover { color: #A0A29B; border-color: #E5F4B6; background-color: #F3FADE; }

		.page ul li .selected:hover { color: #666; border-color: #D3ED85; background-color: #EBF7C8; }

		#vote_form tr td { font-size: 15px; height: 40px; line-height: 40px; }

		#vote_list .item_child ul li .selected, #vote_list .item_child ul li .selected:hover {
			color: #666;
			border-color: #D3ED85;
			background-color: #EBF7C8;
		}

		#vote_list .item_child ul li.unselect {
			border: 1px dotted #f30;
			background: #FFF9F7;
		}
	</style>

</head>
<body>
<input type="hidden" id="urls" value="<#if url??>${url}</#if>">
<input type="hidden" id="spcode" value="<#if spcode??>${spcode}</#if>">

	<div id="wizard">
		<h3>
			<span style="color:#ef8641;">国际最权威的注意力测评&nbsp;&nbsp;&nbsp;</span><em style="color:#715545; font-weight: bold; font-size:16px;">家长问卷评估表</em>
		</h3>
		<ul id="status">
			<#if askIList??>
			<#list askIList as askilist>
			<li <#if askilist_index == 0>class="active" </#if> id="${askilist.ids}">${askilist.topic}</li>
			</#list>
			</#if>
			<li>填写真实信息</li>
		</ul>
		
		<div id="vote_list" class="items">
			<#if askIList??>
			<#list askIList as askilist>
			<#if askilist.itemList??>
			<#list (askilist.itemList)?chunk(9) as itemss>
			<div class="page item_child" id='${askilist.ids}'>
				<ul>
					<#list itemss as items>
					<li class="item">
					<span class="left">${items_index+1}. ${items.q}</span>
					<span class="right">
					<#list items.i?split(",") as i>
					<label  class="checkbox" rel="${(i?split(":"))[1]}">${(i?split(":"))[0]}</label>
					</#list>
					</span>
					</li>
					</#list>
				</ul>
			
			<div class="btn_nav">
			<input type="button" class="prev" style="float:left" value="&laquo;上一步" />
			<input type="button" class="next right" value="下一步&raquo;" style="margin-right: 185px;" />
			</div>
			</div>
			</#list>
			</#if>
			</#list>
			</#if>
			<div class="page">
				<div id="vote_form" style="  margin-top: 40px;font-size: 15px;">
					<table style="width: 773px;">
						<tbody>
						<tr></tr>
						<tr>
							<th width="20%">孩子年龄（周岁）：
							</th>
							<td width="30%"><input type="text" id="age" maxlength="2" style=" height: 30px" value="">
							</td>
						</tr>
						<tr>
							<th width="20%">所在城市（请填中文）：
							</th>
							<td width="30%"><input type="text" id="city" value="" style=" height: 30px"></td>
						</tr>
						<tr>
							<th>联系电话（必须）：
							</th>
							<td><input type="text" id="phone" maxlength="15" value="" style=" height: 30px"></td>
						</tr>
						<tr>
							<th>QQ号码：</th>
							<td><input type="text" id="qq" maxlength="20" value="" style=" height: 30px"></td>
						</tr>
						<tr>
							<th>电子邮箱（选填）：
							</th>
							<td colspan="3"><input type="text" id="email" value="" style=" height: 30px"></td>
						</tr>
						</tbody>
					</table>
					<div id="button_group">
						<!-- 用于鉴别重复提交，这是提交成功后返回的唯一标识号 -->
						<input type="hidden" id="key" value="<#if key??>${key}</#if>">
						<!-- 这是该测评问卷的唯一标识号 -->
						<input type="hidden" id="ask" value="<#if ask??>${ask}</#if>">
					</div>
				</div>
				<div class="btn_nav" style=" margin: 70px auto;">
					<input type="button" class="prev" style="float:left" value="&laquo;上一步"/>
					<input type="button" class="next right disabled" id="btnSubmit" value="确定" style="margin-right: 185px;">
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	
	$(function(){
		$( "#wizard" ).scrollable({onSeek: function( event, i )
			{
				$( "#status li" ).removeClass( "active" ).eq( i ).addClass( "active" );
			},
		} );
		$( "#sub" ).click( function()
		{
			var data = $( "form" ).serialize();
		} );

	} );
	</script>
</body>
</html>
